package appmodelo.modulo1.servico.ejb;

import java.util.List;

import appmodelo.modulo1.dominio.jpa.EntidadeJPA;
import appmodelo.modulo1.servico.ejb.exception.ConsultarExceptionServicoEjb;
import appmodelo.modulo1.servico.ejb.exception.ExcluirExceptionServicoEjb;
import appmodelo.modulo1.servico.ejb.exception.SalvarExceptionServicoEjb;

public interface Servico <A extends EntidadeJPA> {
	A salvar (A entidade) throws SalvarExceptionServicoEjb;
	void excluir(Object id) throws ExcluirExceptionServicoEjb;
	List<A> listar () throws ConsultarExceptionServicoEjb;
	A consultarPorId(Object id) throws ConsultarExceptionServicoEjb;
}